{% form_theme form 'UserBundle:Form:fields.html.twig' %}

<div id="dinamic-form-panel" class="reveal-modal">
    <form id="dinamic-form-user-data" novalidate="" class="custom formulario" action="{{ url('user_save_dinamic_form') }}" method="post" {{ form_enctype(form) }} onsubmit="submitDinamicForm('dinamic-form-user-data'); return false;">
        {{ form_widget(form) }}

        <div class="row">
            <div class="align-center">
                <button type="submit" onclick="" class="button radius"><i class="icon-save"></i> &nbsp;Guardar</button>
            </div>
        </div>
    </form>
</div>

<script type="text/javascript">
    $(function() {
        $("#dinamic-form-panel").reveal();
    });
</script>



